<template>
  <div>
    <myNavbar title="邀请有礼"></myNavbar>
    <div class="rule-dio">
      <div class="rule-title">
        <div class="botton_Bg_Color" style="width:50px;height:4px;margin-right:20px;border-radius:30px"></div>
        <text class="botton_bd_fz_color">规则内容</text>
        <div class="botton_Bg_Color" style="width:50px;height:4px;margin-left:20px;border-radius:30px"></div>
      </div>
      <div class="rule-text"><text>1、邀请好友购买【商城】产品获得红包奖励</text></div>
      <div class="rule-text"><text>2、1红包等于1元 、全场通用 、不限额使用</text></div>
      <div class="rule-text"><text></text></div>
      <div class="rule-click botton_Bg_Color" @click="canvasClick">邀请好友成为会员</div>
    </div>

    <div class="botton-deposit">
      <div class="botton-deposit-botton-content">
        <div class="button-content" @click="toBucket">
          <div class="button">
<!--            <image :src="/images/invitation.png" style="height:40px;width:40px;"></image>-->
          </div>
          <div class="title-button">我邀请的会员</div>
        </div>
        <div class="button-content" @click="toWithdrawal">
          <div class="button">
<!--            <image :src="/images/history.png" style="height:40px;width:40px;"></image>-->
          </div>
          <div class="title-button">我的推广订单</div>
        </div>

      </div>
    </div>
    <div style="width750px;height:50px"></div>
    <div class="isMaskCanvas" v-if="canvasType == true" catchtouchmove="myCatchTouch">
      <text class="iconfont .icon-close cancelCanvasBotton" @click="cancleCanvasClick"></text>
      <div class='poste_content' id='canvas-container'>
<!--        <canvas canvas-id="canvas-show" :style="width:100%;height:canvasHeight+px;" id="canvas-show"></canvas>-->
      </div>
      <div class="canvasBotton" @click="saveShareImg">
        <text class="canvasBottonTitle">保存图片</text>
      </div>
    </div>

  </div>

</template>
<script>

import myNavbar from "../../../components/myNavbar/myNavbar.vue";
export default {
  data(){
    return{
      homeInfo: {},
      pageNum: 1,
      avatar: '',
      pageSize: 1000,
      isRuleShow: false,
      dialogShow: false,
      memberInfo: {},
      canvasType: false,
      canvasHeight: 400,
      canvasH: 0,
      qrcode: '',
      carvasQrCode:'',
      carvasLogo:'',
      cardInfo: {
        TagText: "****", //标签
        Name: '****', //姓名
        avater: "", //需要https图片路径
        qrCode: "", //需要https图片路径
        price: '**',
        logo: 'http://cdnx.rzico.com/images/canvasMyLogo.png',
        coupons:'',
        marketPrice:'',
        activityPrice:''
      },
      oneButton: [{
        text: '确定'
      }],
      showOneButtonDialog: false,
    }
  },
  components: { myNavbar },

}
</script>

<style scoped>
page {
  background: rgb(248, 248, 248);
}

.vein {
  position: absolute;
  width: 100%;
}

.rule-content {
  z-index: 200;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rule-dio {
  display: flex;
  padding: 40px;
  flex-direction: column;
  align-items: center;
  width: 690px;
  background-color: white;
  border-radius: 16px;
  margin-left: 30px;
  margin-top: 50px;
  box-sizing: border-box;
}
.rule-text{
  width: 600px;
  display: flex;
  align-items: center;
  font-size: 26px;
  padding-top: 20px;
  color: rgba(0, 0, 0, 0.4);
}
.yue{
  font-size: 24px;
  font-family: PingFangSC;
  font-weight: 400;
  color: #1a1a1e;
  opacity: 0.3;
}
.rule-click {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  height: 80px;
  width: 600px;
  /* background: linear-gradient(to right, #474747, #474747); */
  color: white;
  border-radius: 14px;
}

.rule-title {
  /* color: #b19e81; */
  width: 650px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 30px;
  font-size: 40px;
  margin-bottom: 20px;
}

.deposit {
  width: 750px;
  height: 600px;
  background-image: linear-gradient(to bottom, #c2c2c2, #f8f8f8);

}
.price-content{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.total-deposit {
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.total-deposit-head {
  width: 655px;
  padding-top: 30px;
  height: 105px;
  background: linear-gradient(to right, #f7dec5, #f0d0a7);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  justify-content: space-between;
  padding-left: 20px;
  padding-right: 20px;
}

.total-deposit-bottom {
  height: 120px;
  background-color: white;
  width: 710px;
  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
}

.aaaa {
  width: 750px;
  height: 91px;
}

.total-deposit-money {
  width: 695px;
  display: flex;
  justify-content: space-between;
}

.botton-deposit {
  background-color: white;
  padding: 20px;
  width: 690px;
  box-sizing: border-box;
  margin-left: 30px;
  margin-top: 50px;
  border-radius: 12px;
}

.botton-deposit-title-content {
  height: 40px;
  width: 143px;
  display: flex;
  justify-content: space-between;
}

.vertical {
  margin-top: 10px;
  height: 30px;
  width: 10px;
  background: linear-gradient(to bottom, #FFFFF0, #FFD39B);
}

.botton-deposit-title {
  font-size: 30px;
}

.botton-deposit-botton-content {
  display: flex;
  justify-content: space-around;

}

.title-button {
  margin-top: 10px;
  font-size: 24px;

}

.button-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* margin-top: 40px; */
  width: 200px;

}

.button {
  height: 100px;
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(to right, #f7dec5, #f0d0a7);
}

.title {
  margin-top: 10px;
  font-size: 28px;
  margin-left: 20px;
}

.detailed-content {
  padding-top: 20px;
  padding-right: 20px;
  margin-top: 30px;
  background-color: white;
  overflow-y: auto;
}

.detailed-title-content {
  width: 710px;
  padding-left: 20px;
  display: flex;
  margin-bottom: 40px;
  overflow: hidden;

}

.detailed-box-content {
  background-color: white;
  padding-right: 35px;
  padding-left: 35px;
  align-content: center;
  justify-content: space-between;
  height: 140px;
}

.detailed-title {
  margin-left: 20px;
  width: 400px;
  display: flex;
  flex-direction: column;

}
.aaaaa{
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 400px;
  max-height: 92px;
}
.detailed-name {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: space-between;
  font-size: 25px;
}

.detailed-date {
  margin-top: 10px;
  font-size: 25px;
  color: #808080;
}

.price {
  float: right;
  color: #FF6347;
  font-weight: 700;
  font-size: 27px;
}
.reducePrice{
  float: right;
  color: black;
  font-weight: 700;
  font-size: 27px;
}
.invitation-button {

  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #333333;
  color: #ffffde;
  font-size: 30px;
  border-radius: 20px;
}

.header {
  height: 146px;
  padding-right: 47px;
  padding-left: 30px;
  display: flex;
  justify-content: space-between;
}

.header-info {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}


.rule {
  z-index: 100;
  width: 170px;
  height: 50px;
  border-radius: 20px;
  opacity: 0.8;
  display: flex;
  justify-content:space-evenly;
  align-items: center;
  font-size: 25px;
}

.rule-circular {
  height: 30px;
  width: 30px;
  border: 4px solid;
  color: black;
  border-radius: 50px;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.isMaskCanvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cancelCanvasBotton {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  color: white;
  font-size: 40px;
  width: 440px;
  margin-bottom: 20px;
}


.poste_content {
  width: 440px;
  /* margin: auto; */
  overflow: hidden;
  /* margin-top: 200px; */
  /* background-color: #fff; */
  /* position: absolute;
  top: 0; */
  z-index: 9999;
  border-radius: 16px;
}
.canvasBotton {
  border: 2px solid white;
  padding: 10px 100px;
  border-radius: 100px;
  margin-top: 40px;
}
.canvasBottonTitle {
  font-size: 28px;
  color: white;
}



/*@import "../../../common.wxss";*/

.saveCard_header{
  width: 750px;
  height: 160px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-left: 30px;
  box-sizing: border-box;
  background-color: white;
}
.saveCard_header_title{
  font-size: 50px;
  color: black;
}

.saveCard_balance_Titlt{
  font-size: 26px;
}

.saveCard_balance{
  font-size: 46px;
}

.saveCard_balance_subTitle{
  font-size: 22px;
  color: rgba(0, 0, 0, 0.4);
  display: block;
}

.saveCard_balance_box{
  width: 690px;
  margin-left: 30px;
  border-bottom-color: rgba(0, 0, 0, 0.2);
  border-bottom-width: 1px;
  border-bottom-style: solid;
  box-sizing: border-box;
  padding-bottom: 40px;
  margin-top: 50px;
}

.saveCard_history{
  font-size: 26px;
  padding-left: 30px;
  display: block;
  margin-top: 40px;
  color: rgba(0, 0, 0, 0.4);
}

.saveCard_botton_top{
  width: 150px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.saveCard_botton_top_title{
  font-size: 28px;
  color: white;
}

.saveCard_botton_bottom_title{
  font-size: 28px;
}

.saveCard_botton_bottom{
  width: 150px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-width: 1px;
  border-style: solid;
  margin-top: 20px;
}
</style>
